

package com.zdsx.dao;

import com.zdsx.common.dao.BaseDao;
import com.zdsx.entity.SysUserEntity;
import com.zdsx.entity.SysZdsxUserRefEntity;
import com.zdsx.entity.UserEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;

import java.util.Map;

/**
 * 用户
 * 
 * @author Lr
 */
@Mapper
public interface UserDao extends BaseDao<UserEntity> {
    UserEntity getUserByMobile(String mobile);

    UserEntity getUserByUserId(Long userId);

    UserEntity getUserByOpenId(String openId);

    @Options(useGeneratedKeys = true, keyProperty = "id")
    int insertSysUserEntity(SysUserEntity userEntity);

    int insertZdsxSysUserRef(SysZdsxUserRefEntity data);

    SysZdsxUserRefEntity getSysUserRef(Long zdsxUserId);
}
